﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sablon.Master" AutoEventWireup="true" CodeBehind="musteriduzenle.aspx.cs" Inherits="OnlineDovizOtomasyonu.musteriduzenle" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <style type="text/css">
    .style1
    {
        height: 14px;
    }
    .style2
    {
        width: 100%;
    }
        .style3
        {
            width: 160px;
            height: 20px;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr>
		<td align="left" valign="top">
        <dx:ASPxRoundPanel ID="panelMusteriTanimla" runat="server" 
        HeaderText="Müşteri Tanımlama" Theme="Aqua" Width="100%">
            <HeaderImage Url="~/images/icon/musteriekle.png">
            </HeaderImage>
            <PanelCollection>
<dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td height="20" width="120">
                            Müşteri Kodu</td>
                        <td width="10">
                            :</td>
                        <td>
                            <dx:ASPxComboBox ID="txtMusteriKoduSec" runat="server" 
                                DataSourceID="sdMusteriKodu" DropDownStyle="DropDown" EnableTheming="True" 
                                Theme="Aqua" ValueField="ID" Width="150px" 
                                LoadingPanelText="Yükleniyor..." TextFormatString="{0}" 
                                EnableIncrementalFiltering="True" IncrementalFilteringMode="StartsWith" 
                                OnSelectedIndexChanged="txtMusteriKoduSec_SelectedIndexChanged" 
                                AutoPostBack="True">
                                <Columns>
                                    <dx:ListBoxColumn Caption="Müşteri Kodu" FieldName="KODU" Width="100px" />
                                    <dx:ListBoxColumn Caption="Müşteri Adı" FieldName="ADI" Width="150px" />
                                </Columns>
                                <ValidationSettings>
                                    <RequiredField ErrorText="İşlem Yapmak İçin Müşteri Seçiniz!" 
                                        IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxComboBox>
                            <asp:SqlDataSource ID="sdMusteriKodu" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:webingdovizlistelericinbaglanti %>" 
                                SelectCommand="SELECT [ID], [KODU], [ADI] FROM [WEBINGDOVIZ_TBLCARI] ORDER BY [ADI]">
                            </asp:SqlDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td height="20">
                            Müşteri Adı</td>
                        <td>
                            :</td>
                        <td>
                            <dx:ASPxTextBox ID="txtMusteriAdi" runat="server" Theme="Aqua" Width="250px" 
                                TabIndex="1">
                                <ValidationSettings>
                                    <RequiredField ErrorText="Müşteri Adını Giriniz!" IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="20">
                            Müşteri Group</td>
                        <td>
                            :</td>
                        <td>
                            <dx:ASPxComboBox ID="txtMusteriGroup" runat="server" 
                                DataSourceID="sdmusterigroup" DropDownStyle="DropDown" 
                                EnableIncrementalFiltering="True" IncrementalFilteringMode="StartsWith" 
                                LoadingPanelText="Yükleniyor..." TextField="ADI" Theme="Aqua" ValueField="ID" 
                                Width="150px" TextFormatString="{1}" TabIndex="2">
                                <Columns>
                                    <dx:ListBoxColumn Caption="Group Kodu" FieldName="KODU" Width="100px" />
                                    <dx:ListBoxColumn Caption="Group Adı" FieldName="ADI" Width="200px" />
                                </Columns>
                                <ValidationSettings>
                                    <RequiredField ErrorText="Müşteri Gurubunu Seçiniz!" IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxComboBox>
                            <asp:SqlDataSource ID="sdmusterigroup" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:webingdovizlistelericinbaglanti %>" 
                                SelectCommand="SELECT [ID], [KODU], [ADI] FROM [WEBINGDOVIZ_TBLGROUP] ORDER BY [ID]">
                            </asp:SqlDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td height="20">
                            Durumu</td>
                        <td>
                            :</td>
                        <td>
                            <dx:ASPxComboBox ID="txtDurum" runat="server" EnableTheming="True" Theme="Aqua" 
                                Width="100px" TabIndex="3">
                                <Items>
                                    <dx:ListEditItem Text="Aktif" Value="1" />
                                    <dx:ListEditItem Text="Pasif" Value="2" />
                                </Items>
                                <ValidationSettings>
                                    <RequiredField ErrorText="Müşteri Durumunu Seçiniz!" IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxComboBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <%--<dx:ASPxTabControl ID="mtTabKontrol" runat="server" ActiveTabIndex="0" 
                    EnableTheming="True" Height="200px" Theme="Aqua" Width="100%">
                    <Tabs>
                        <dx:Tab Text="İletişim Bilgileri">
                            <TabImage Url="~/images/icon/iletisim.png">
                            </TabImage>
                            <contentcollection>
                            <dx:ContentControl ID="ContentControl1" runat="server">
                            </dx:ContentControl>
                            </contentcollection>
                        </dx:Tab>
                        <dx:Tab Text="Hesap Bilgileri">
                            <TabImage Url="~/images/icon/hesapbilgileri.png">
                            </TabImage>
                        </dx:Tab>
                    </Tabs>
                </dx:ASPxTabControl>--%>

                <dx:ASPxPageControl ID="pageTabMusteriAyrinti" runat="server" 
                    ActiveTabIndex="0" EnableTheming="True" Theme="Aqua" Width="100%">
                    <TabPages>
                        <dx:TabPage Name="tbIletisimBilgileri" Text="İletişim Bilgileri">
                            <TabImage Url="~/images/icon/iletisim.png">
                            </TabImage>
                            <ContentCollection>
                                <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                                    <table cellpadding="0" cellspacing="0" width="100%" >
                                        <tr>
                                            <td width="100">
                                                Adresi</td>
                                            <td width="10">
                                                :</td>
                                            <td colspan="5">
                                                <dx:ASPxMemo ID="txtAdres" runat="server" Height="50px" Theme="Aqua" 
                                                    Width="419px" TabIndex="4">
                                                </dx:ASPxMemo>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20" width="100">
                                                İl</td>
                                            <td width="10">
                                                :</td>
                                            <td width="150">
                                                <dx:ASPxComboBox ID="txtSehir" runat="server" 
                                                    OnSelectedIndexChanged="txtIl_SelectedIndexChanged" Theme="Aqua" 
                                                    Width="150px" DropDownStyle="DropDown" EnableIncrementalFiltering="True" 
                                                    AutoPostBack="True" LoadingPanelText="Yükleniyor..." TabIndex="5">
                                                </dx:ASPxComboBox>
                                            </td>
                                            <td width="10">
                                            </td>
                                            <td width="100">
                                                Telefon No. 1</td>
                                            <td width="10">
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtTel1" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="10">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20">
                                                İlçe</td>
                                            <td>
                                                :</td>
                                            <td>
                                                <asp:UpdatePanel ID="UpdatePanelIlce" runat="server">
                                                    <ContentTemplate>
                                                        <dx:ASPxComboBox ID="txtIlce" runat="server" Theme="Aqua" 
                                                            ValueType="System.String" Width="150px" DropDownStyle="DropDown" 
                                                            IncrementalFilteringMode="StartsWith" EnableIncrementalFiltering="True" 
                                                            TabIndex="6">
                                                        </dx:ASPxComboBox>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                Telefon No. 2</td>
                                            <td>
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtTel2" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="11">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20">
                                                Posta Kodu</td>
                                            <td>
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtPostaKodu" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="7">
                                                </dx:ASPxTextBox>
                                            </td>
                                            <td class="style1">
                                                </td>
                                            <td>
                                                Cep Telelfonu 1</td>
                                            <td class="style1">
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtCep1" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="12">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20">
                                                Web Adresi</td>
                                            <td>
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtWebAdresi" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="8">
                                                </dx:ASPxTextBox>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                Cep Telefonu 2</td>
                                            <td>
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtCep2" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="13">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20">
                                                Mail Adresi</td>
                                            <td>
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtMailAdresi" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="9">
                                                </dx:ASPxTextBox>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                Faks Numarası</td>
                                            <td>
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtFaks" runat="server" Theme="Aqua" Width="150px" 
                                                    TabIndex="14">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Name="tbHesapBilgileri" Text="Hesap Bilgileri">
                            <TabImage Url="~/images/icon/hesapbilgileri.png">
                            </TabImage>
                            <ContentCollection>
                                <dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
                                    <table cellpadding="0" cellspacing="0" class="style2">
                                        <tr>
                                            <td height="20" width="100">
                                                T.C. Kimlik No.</td>
                                            <td width="5">
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtTC" runat="server" Theme="Aqua" Width="170px">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20">
                                                Vergi Numarası</td>
                                            <td width="5">
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtVergiNo" runat="server" Theme="Aqua" Width="170px">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="20">
                                                Vergi Dairesi</td>
                                            <td width="5">
                                                :</td>
                                            <td>
                                                <dx:ASPxTextBox ID="txtVergiDairesi" runat="server" Theme="Aqua" Width="170px">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" height="20">
                                                <table cellpadding="0" cellspacing="0" class="style2">
                                                    <tr>
                                                        <td height="20" width="100">
                                                            Şube Kodu</td>
                                                        <td height="20" width="150">
                                                            Banka Adı</td>
                                                        <td height="20" width="150">
                                                            Hesap Numarası</td>
                                                        <td height="20">
                                                            IBAN Kodu</td>
                                                    </tr>
                                                    <tr>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtSube1" runat="server" Theme="Aqua" Width="100px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtBanka1" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtHesapNo1" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtIban1" runat="server" Theme="Aqua" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtSube2" runat="server" Theme="Aqua" Width="100px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtBanka2" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtHesapNo2" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtIban2" runat="server" Theme="Aqua" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtSube3" runat="server" Theme="Aqua" Width="100px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtBanka3" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtHesapNo3" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtIban3" runat="server" Theme="Aqua" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtSube4" runat="server" Theme="Aqua" Width="100px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtBanka4" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtHesapNo4" runat="server" Theme="Aqua" Width="150px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td height="20">
                                                            <dx:ASPxTextBox ID="txtIban4" runat="server" Theme="Aqua" Width="100%">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                    </TabPages>
                </dx:ASPxPageControl>

            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanelIslem" runat="server">
                    <ContentTemplate>
                        <table cellpadding="0" cellspacing="0" class="style2">
                    <tr>
                        <td height="25" width="100">
                            <dx:ASPxButton ID="btnKaydet" runat="server" HorizontalAlign="Left" 
                                Text="Kaydet" Theme="Aqua" Width="100px" onclick="btnKaydet_Click">
                                <Image Url="~/images/icon/butonkaydet.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        <td width="100">
                            <dx:ASPxButton ID="btnSil" runat="server" HorizontalAlign="Center" 
                                onclick="btnSil_Click" Text="Sil" Theme="Aqua" Width="100px">
                                <Image Url="~/images/icon/sil.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        <td width="100">
                            <dx:ASPxButton ID="btnTemizle" runat="server" HorizontalAlign="Left" 
                                onclick="btnTemizle_Click" Text="Temizle" Theme="Aqua">
                                <Image Url="~/images/icon/temizle.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <asp:UpdateProgress ID="UpdateProgressIslem" runat="server">
                                <ProgressTemplate>
                                    <img class="style3" src="images/icon/islem.gif" alt="İşlem Sürüyor. Lütfen Bekleyin..." title="İşlem Sürüyor. Lütfen Bekleyin..." />
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </td>
                    </tr>
                </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
                
            </td>
        </tr>
    </table>
                </dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
        </td>
	</tr>
    <tr><td></td></tr>
</table>
    
</asp:Content>
